package com.itheima.springbootwebtlias.service;

import com.itheima.springbootwebtlias.pojo.Emp;
import com.itheima.springbootwebtlias.pojo.EmpQueryParam;
import com.itheima.springbootwebtlias.pojo.PageResult;

import java.io.FileNotFoundException;
import java.util.List;

public interface EmpService {
    //分页和条件查询
    PageResult page(EmpQueryParam queryParam);

    //添加员工
    void add(Emp emp) throws FileNotFoundException;



    //批量删除员工
    void removeBatch(List<Integer> ids);

    //查询员工信息
    Emp queryById(Integer id);

    //修改员工
    void update(Emp emp);

    //查询全部员工
    List<Emp> selectAllEmp();


    //登录验证
    Emp checkLogin(Emp emp);
}
